package com.wh.wisdomsite.xbox.ba.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 公共区域实体类
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.ba.entity
 * @date 2018年8月2日 16:30
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司CopyRight (c) 2018
 */

@TableName("ba_region")
public class Region extends Model<Region> {

    /**
     * 区域编码主键
     */
    @TableId(type = IdType.AUTO)
    private Integer regionId;
    /**
     * 区域编码
     */
    @TableField("codeId")
    private String codeId;

    /**
     * 省份
     */
    @TableField("province")
    private String province;

    /**
     * 市
     */
    @TableField("city")
    private String city;

    /**
     * 区/县
     */
    @TableField("district")
    private String district;

    /**
     * 父节点
     */
    @TableField("parentId")
    private String parentId;

    /**
     * 区域首字母
     */
    @TableField("isNumber")
    private String isNumber;

    /**
     * 是否热门城市 1：否 2:是
     */
    @TableField("isHot")
    private String isHot;

    /**
     * 区域状态 1：启用 2：禁用
     */
    @TableField("regionStatus")
    private Integer regionStatus;

    /**
     * 创建时间
     */
    @TableField("createDate")
    private Date createDate;

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getIsNumber() {
        return isNumber;
    }

    public void setIsNumber(String isNumber) {
        this.isNumber = isNumber;
    }

    public String getIsHot() {
        return isHot;
    }

    public void setIsHot(String isHot) {
        this.isHot = isHot;
    }

    public Integer getRegionStatus() {
        return regionStatus;
    }

    public void setRegionStatus(Integer regionStatus) {
        this.regionStatus = regionStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.regionId;
    }


}
